<template>
  <div>
    <van-nav-bar title="资产信息" />
    <div class="top">
        <p  style="width:6px;height:20px;background:#1989fa;"></p>
        <p>&nbsp;基本信息</p>
    </div>
    <van-cell-group>
  <van-cell title="资产编码" :value="messages.ANLN1" />
  <van-cell title="资产类别" :value="messages.TXL20"  />
  <van-cell title="资产名称" :value="messages.TXT50"  />
  <van-cell title="数量" :value="messages.MENGE"  />
  <van-cell title="购入金额" :value="messages.KANSW"  />
  <van-cell title="计量单位" :value="messages.MEINS"  />
  <van-cell title="购入日期" :value="messages.AKTIV"  />
  <!-- <van-cell title="保管人" :value="messages.RAUMN"  /> -->
  <van-cell title="使用期限" :value="messages.SYQX"  />
  <van-cell title="所属公司" :value="messages.BUTXT"  />
  <van-cell title="成本中心" :value="messages.KTEXT"  />
  <van-cell title="存放地点" :value="messages.KTXT"  />
  <van-cell title="备注" :value="messages.REMARK"  />
</van-cell-group>
    
<van-button type="info" block @click="retu">返回</van-button>
  </div>
</template>

<script >
export default {
    mounted(){
        this.messages = this.$router.history.current.query.data
    },
data(){
    return {
        messages:{
        }
    }
},
methods:{
    retu(){
        // this.$route.query.data = 2
        // this.$router.back()
        this.$router.push({path:'/inventory',query:{data:2}})
    }
}
}
</script>

<style scoped>
.top{
    background: #f9f9f9;
    padding-left: 15px;
    display: flex;
    font-size: larger;
    color: black;
}
.van-button--block{
    width: 86%;
    margin:  10px auto;

}
</style>